package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Lenovo-songfengli on 2016/10/24.
 * 企业灰名单规则
 */
@Entity
@Table(name="RC_RULE_GRAY_CORP")
public class RcRuleGrayCorp extends BaseEntity implements Serializable {

    /** 规则编号 */
    @Id
    @Column(name="CODE", length=20)
    private String code;
    /** 规则名称 */
    @Column(name="NAME", length=50)
    private String name;
    /** 规则说明 */
    @Column(name="EXPLAIN", length=100)
    private String explain;
    /** 规则状态 */
    @Column(name="STAT", length=2)
    private String stat;
    /** 处理方式 */
    @Column(name="DEAL_TYPE", length=2)
    private String dealType;
    /** 规则配置 */
    @Column(name="CONFIG", length=500)
    private String config;
    /** 备注 */
    @Column(name="REMARK", length=200)
    private String remark;
    /** 创建时间 */
    @Column(name="CREATED_TS")
    private Date createdTs;
    /** 最后操作时间 */
    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;
    /** 最后操作用户id  */
    @Column(name="LAST_UPD_USER_ID", length=10)
    private String lastUpdUserId;
    /** 乐观锁版本号 */
    @Version
    @Column(name = "VERSION")
    private Integer version;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public String getDealType() {
        return dealType;
    }

    public void setDealType(String dealType) {
        this.dealType = dealType;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getLastUpdUserId() {
        return lastUpdUserId;
    }

    public void setLastUpdUserId(String lastUpdUserId) {
        this.lastUpdUserId = lastUpdUserId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
